from django.shortcuts import render

# Create your views here.
from .models import *
from rest_framework.views import APIView
from rest_framework.response import Response
from .Ser import *

class BookFL_view(APIView):
    def get(self,request):
        data=BookFL_M.objects.all()
        data_ser=BookFL_SER(data,many=True)
        return Response(data_ser.data)


class Book_view(APIView):
    def get(self,request):
        data=Book_M.objects.all()
        data_ser=Book_SER(data,many=True)
        return Response(data_ser.data)
